package com.lovo.pz.role;

import com.lovo.pz.util.GameUtil;

import java.awt.*;

/**
 * 地图角色
 */
public class MapRole extends BaseRole{
    public MapRole(Component component) {
        super(component);
    }

    @Override
    public void initRole() {
        this.setRoleX(-120);
    }

    @Override
    public void paintRole(Graphics g) {
        g.drawImage(GameUtil.mapImage,this.getRoleX(),this.getRoleY(),this.getComponent());
    }

    @Override
    public void action() {

    }
}
